import request from './request' // 引入axios的封装方法

export const getAdminList = (params) => {
  return request('get', '/api/admin/in_theaters', params) // 获取豆瓣电影信息
}

export const getCourse = (params) => {
  return request('get', '/api/admin/course', params) // 获取科目列表
}

export const getCourseCategory = (params) => {
  return request('get', '/api/admin/course_category', params) // 获取科目类型列表
}

export const addCourseCategory = (params) => {
  return request('post', '/api/admin/add_course_category', params) // 新增科目列表类型
}

export const deleteCourseCategory = async (params) => {
  return request('delete', `/api/admin/delete_course_category`, params) //  删除科目列表类型
}
